package com.vencent.spring.test;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.vencent.spring.bean.Person;
import com.vencent.spring.config.TastExecutorConfig;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes=TastExecutorConfig.class)
public class ApplicationContextStarter {
	@Autowired
	private Person per;
	
	@Test
	public void aysncTest(){
		for (int i = 0; i < 10; i++) {
			per.playBeforeDinner(i);
			per.playAfterDinner(i);
		}
	}
}
